package com.ibeeking.found.common.config.shutdown;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Configuration;

import javax.annotation.PreDestroy;
import java.time.LocalDateTime;

/**
 * @Author ibeeking
 */
@Configuration
public class ShutdownProConfig {
    private static final Logger log = LoggerFactory.getLogger(ShutdownProConfig.class);

    @PreDestroy
    public void backData() {
        log.info("服务关闭时间：[{}]", LocalDateTime.now());
    }
}